<!--
选择 模板列表
选择  表名称
生产代码 压缩包
-->
<template>
    <div>
        <div @click="triggerZip">生产代码</div>
    </div>
</template>
<script>
  import * as api from '@/apis/gTable.api.js';
  import { createA } from '@/utils';
  
  export default {
    methods: {
      async triggerZip() {
        var result = await api.zipCodeByTableId({
          fileList: [
            { fileName: 'src/views/modify.vue', fileContent: 'hello world' },
            { fileName: 'src/views/list.vue', fileContent: 'list list' },
          ],
        });
        createA(result && result.data);
      },
    },
  };
</script>
